const http = require("http");
const io   = require("socket.io");

let httpServer = http.createServer();
httpServer.listen(8080);

let ws = io.listen(httpServer);
ws.on('connection', (socket) => {
	// socket.on
	// socket.emit
	/*
	socket.emit('news', { hello: 'world' });
  socket.on('my other event', function (data) {
    console.log(data);
  });
	*/
});